import './assets/main.less'

import { createApp } from 'vue'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/reset.css'
import { createPinia } from 'pinia'
import { registerStore } from '@/store'
import directives from '@/utils/directive'

const pinia = createPinia()

import App from './App.vue'
import router from './router'
import '@/assets/iconfont/iconfont'
import '@/assets/iconfont/iconfont2'

const app = createApp(App)

for (let key in directives) {
  app.directive(key, directives[key])
}

app.use(Antd)
app.use(pinia)
registerStore()
app.use(router)

app.mount('#template')
